    <link rel="stylesheet" href="css/menu.css" type="text/css" media="screen" />
    <link href="css/main.css" rel="stylesheet" type="text/css" /> 
    <link href="css/button.css" rel="stylesheet" type="text/css" /> 
	<script src="scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
	<script src="scripts/jquery.corner.js" type="text/javascript"></script>
	<script src="scripts/jquery.dropshadow.js" type="text/javascript"></script>
    <script src="scripts/menu.js" type="text/javascript"></script>
    <script src="scripts/jquery.styledButton.js" type="text/javascript"></script>
    <script type="text/javascript">
		$(document).ready(function () {
			$("span").css({
				 'padding' : '5px 20px',
				 'font-size' : '14px',
                 'width' : '200px'
			});
			
			$("span.signin").styledButton({
				'orientation' : 'alone',
				'action' : function () { parent.location.href  = "entrar.php"; },
				'display' : 'block',
               
                
			});
            
            
            $("span.signup").styledButton({
				'orientation' : 'alone',
				'action' : function () { parent.location.href  = "criesuaconta.php"; },
				'display' : 'block',
                                
                
			});
			

		} );
	</script>
    	<script type="text/javascript">
    // test auto-ready logic - call corner before DOM is ready
//    $('.caixa').corner();
//    $('.header-box').corner();
//    $('#tagcloud').corner();
//    //$('.dropdown-pane').corner("right 5px");
//    $('#middle_right').corner();
//    $('#bottom').corner();        
   
    
    


    window.onload = function()  
    {
    //  $(".caixa").dropShadow({left: 6, top: 8, opacity: 0.8, blur: 4});
    //  $("#middle_right").dropShadow({left: 6, top: 8, opacity: 0.8, blur: 4});
    //  $("#bottom").dropShadow({left: 6, top: 8, opacity: 0.8, blur: 4});      
    }
</script>
    
    
<?php
	include('lib/common-functions.php');
	
    session_start(); 
	if( isset( $_SESSION['userid'] ) )
	{ 
		$username = $_SESSION['username'];
		echo("<div id='title'>DESIGN ARTIFACTS REPOSITORY</div>");				
		echo("<div id='top_signup'> $username,  <a href='lib/logout.php'>Sair</a></div>");	
	}
	else
	{
		echo("<div id='title'>DESIGN ARTIFACTS REPOSITORY</div>");			
		echo("<div id='top_signup'><span class='signup'>Sign up</span></div>");		
		echo("<div id='top_login'><span class='signin'>Sign in</span></div>");
	}
?>